package edu.kaist.cs408.pof.common.service;

import edu.kaist.cs408.pof.common.model.RestaurantOwnerVo;
import edu.kaist.cs408.pof.common.model.RestaurantVo;
import org.bson.types.ObjectId;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

/**
 * Created with IntelliJ IDEA.
 * User: duyleekun
 * Date: 5/11/12
 * Time: 1:01 AM
 * To change this template use File | Settings | File Templates.
 */

@Path("owner")
public interface RestaurantOwnerSvc {


	@PUT
	@Path("register")
	@Produces(MediaType.APPLICATION_JSON)
	@Consumes(MediaType.APPLICATION_JSON)
	RestaurantOwnerVo create(RestaurantOwnerVo newUser);


	@GET
	@Path("login")
	@Produces(MediaType.APPLICATION_JSON)
	RestaurantOwnerVo login(@QueryParam("username") String username, @QueryParam("password") String password);

	@PUT
	@Path("/{owner}/setrestaurant")
	@Produces(MediaType.APPLICATION_JSON)
	@Consumes(MediaType.APPLICATION_JSON)
	public RestaurantOwnerVo setRestaurant(RestaurantVo newRestaurant, @PathParam("owner") ObjectId owner);
}
